API Documentation
MAIN PAGE
NAMESPACES
CLASSES
Documentation
Headers
NilkinsLog
Data
StringView.h
1
// StringView.h
3
//
5
6
namespace
nkLog
7
{
17
class
StringView
final
18
{
19
public :
20
21
// Attributes
22
const
char
*
_data
;
23
size_t
_size
;
24
25
public :
26
27
// Functions
28
// Constructor, destructor
32
StringView
() = delete ;
39
StringView
(
const
char
* data) ;
46
StringView
(
const
char
* data,
size_t
size) ;
50
~StringView
() ;
51
52
public :
53
54
// Inlined constructors
61
StringView
(
const
std::string& str) ;
68
StringView
(
const
std::string_view& str) ;
69
70
public :
71
72
// Inlined conversions
77
operator
std::string_view ()
const
;
78
} ;
79
}
nkLog::StringView::_size
size_t _size
The string's size.
Definition:
StringView.h:23
nkLog::StringView
Allows to exchange strings with external code.
Definition:
StringView.h:18
nkLog::StringView::StringView
StringView(const std::string &str)
nkLog::StringView::~StringView
~StringView()
nkLog
Encompasses all API of component NilkinsLog.
Definition:
StringView.h:7
nkLog::StringView::StringView
StringView(const char *data)
nkLog::StringView::StringView
StringView()=delete
nkLog::StringView::StringView
StringView(const std::string_view &str)
nkLog::StringView::_data
const char * _data
The data pointer over the string.
Definition:
StringView.h:22
nkLog::StringView::StringView
StringView(const char *data, size_t size)
Generated by
Doxygen
1.8.18